package cn.edu.zut.Model;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String snumber;
    private String sname;
    private String sex;
    private float sgrade;
    public String getSnumber() {
        return snumber;
    }

    public void setSnumber(String snumber) {
        this.snumber = snumber;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public float getSgrade() {
        return sgrade;
    }

    public void setSgrade(float sgrade) {
        this.sgrade = sgrade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "snumber='" + snumber + '\'' +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", sgrade=" + sgrade +
                '}';
    }
}
